﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdvanceLib.ClassExtensions
{
    public static class EnumerableExtensions
    {
        public static TClass FirstElement<TClass>(this IEnumerable<TClass> self)
        {
            return self.ToArray()[0];
        }
    }
}
